package de.tu_darmstadt.gdi1.battleship.net;
import java.io.Serializable;



public class NetObject implements Serializable {
 
   
    /**
     *
     */
    private static final long serialVersionUID = -8202942130357186474L;
    private String message = "";
    private String lvlString = "";
    private Boolean turn = false;
    private Boolean corrupt = false;

	private int pos = 0;
   



	public NetObject(){}
   
    public NetObject(String lvlString, Boolean turn){
        this.setLvlString(lvlString);
        this.turn = turn;
       
    }
   
    
    
    /**
	 * @return the corrupt
	 */
	public Boolean getCorrupt() {
		return corrupt;
	}

	/**
	 * @param corrupt the corrupt to set
	 */
	public void setCorrupt(Boolean corrupt) {
		this.corrupt = corrupt;
	}
	
    /**
	 * @return the pos
	 */
	public int getPos() {
		return pos;
	}

	/**
	 * @param pos the pos to set
	 */
	public void setPos(int pos) {
		this.pos = pos;
	}

    /**
     * @return the message
     */
    public String getMessage() {
        return message;
    }
    /**
     * @param message the message to set
     */
    public void setMessage(String message) {
        this.message = message;
    }

    /**
     * @return the turn
     */
    public Boolean getTurn() {
        return turn;
    }
    /**
     * @param turn the turn to set
     */
    public void setTurn(Boolean turn) {
        this.turn = turn;
    }
   
    public String toString(){
        return message;
    }

	/**
	 * @param lvlString the lvlString to set
	 */
	public void setLvlString(String lvlString) {
		this.lvlString = lvlString;
	}

	/**
	 * @return the lvlString
	 */
	public String getLvlString() {
		return lvlString;
	}
}
